from shapes import *
from fallen import fallen

world = TurtleWorld()
pablo = Turtle()
pablo.delay= 0

def showMenu():
    print "1: Square "
    print "2: Rectangle "
    print "3: WHAT? "
    print "4: Exit "
    print "5: Wanna see something cool "
    print "6: Arc "
    print "7: Are you happy? "
    print "8: Do you like skateboarding? "
    print "9: What color turtle? "
    answer = raw_input("Choose a NUMBER or else: ")
    return answer

def drawShape(t, option):
    if option == "1":
        size = raw_input("How big would you like it? ")
        size = float(size)
        square(t, size)
    elif option == "2":
        length = input("How long? ")
        height = input("How tall? ")
        rect(t, length, height)
    elif option == "3":
        print "Why choose 3 huh? no, try 1, 2, or 4. 3 IS ONLY FOR CHUCK NORRIS!"
    
    elif option == "5":
        print ">>>>>>>>>>>FOOLED! Thats what you get for trying!<<<<<<<<<<<< "
        exit()
    elif option == "6":
        degree = input("What size? ")
        arc(t, degree)
    elif option == "7":        
        arc(t, 40)
        pablo.pu()
        pablo.fd(100)
        pablo.pd()
        arc(t, 40)
        pablo.rt(180)
        pablo.pu()
        pablo.fd(50)
        pablo.lt(90)
        pablo.fd(40)
        pablo.rt(90)
        pablo.pd()
        arc(t, 90, 180)
        arc(t, 10)
        pablo.die() 
        wait_for_user()
        exit()
        
    elif option == "8":
        size = input("How big? ;) PLEASE use -->1 or 1<--")
        fallen(t, size)
        
        print ">>>>>>>>>>>>>>>If you wern't, are you now<<<<<<<<<<<<<<<<<<?"       
    
    elif option == "9":
        print "pick either of these, it will help along the way, red, blue, pink. "
        c = raw_input("What color: ")
        if (c == "red"
                or c == "blue"
                or c == "red"
                or c == "pink"):
            t.color = c
        
        else: 
            print "WOW, illiterate, due to your mistake, your going to use red. "
    
    else:
        print "I'm sorry, you have no clue what your doing, please re-think and try again!"
        
def run():
    while True:
        opt = showMenu()
        if opt == "4":
            wait_for_user()
            exit()
        drawShape(pablo, opt)
run()